import axios from "axios";
// Add a response interceptor
axios.interceptors.response.use(function (response) {
  // Any status code that lie within the range of 2xx cause this function to trigger
  // Do something with response data
  if (response.data && response.status === 200) {
    return response.data;
  }
}, function (error) {
  // Any status codes that falls outside the range of 2xx cause this function to trigger
  // Do something with response error
  return Promise.reject(error);
});
export const successApi = () => axios({
  url: "api/renren-fast/app/menu/list",
  method: "get",
});
